<h2>Contact form</h2>
<? if (!$this->sent) { ?>
<form action="" method="post">
    <label>E-mail:</label>
    <input type="text" name="email" /><br />
    <label>Message:</label><br />
    <textarea name="body"></textarea><br />
    <input type="submit" value="Send" />
</form>
<? } else { ?>
<p>E-mail was sent!</p>
<? } ?>